home *** CD-ROM | disk | FTP | other *** search
- Path: connix.com!news
- From: Scott Hawley <shawley@connix.com>
- Newsgroups: comp.lang.c++
- Subject: Re: Abend caused by "strcmp"
- Date: 25 Jan 1996 18:09:01 GMT
- Organization: SHAWLEY SYSTEMS
- Message-ID: <4e8gvt$n1@comet.connix.com>
- References: <4e4guc$o1u@tst.hk.super.net>
- NNTP-Posting-Host: shawley.connix.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.2N (Windows; I; 16bit)
-
- Depending on the include file, for what you defined NULL to it will
- work or not. strcmp needs it to be a string that is NULL terminated.
- the NULL you are using is probally defined to 0 or '\0'. A single
- Null character. you can use "" or define NULL with a #define as ""
- but then you will get multilple defines unless you do not include
- what ever header that has the NULL defined. I would suggest
- you define a NULL_STR as "" and use that.
-
-